body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

h1 {
    color: #ff6f61;
    font-size: 2rem;
}

.avatar-section {
    margin: 20px 0;
}

#avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ff6f61;
    margin-top: 10px;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

button:hover {
    background-color: #45a049;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 300px;
}

#question {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#answer-input {
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

#submit-answer {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

#submit-answer:hover {
    background-color: #45a049;
}

#result-message {
    font-size: 1rem;
    margin-top: 10px;
    color: #ff6f61;
}